package com.zhaolin.service;

import com.zhaolin.entity.AnswerOpt;
import com.zhaolin.entity.AnswerTxt;
import com.zhaolin.entity.QuestionOpt;
import com.zhaolin.entity.Survey;

import java.util.List;
import java.util.Map;

public interface SurveyService {
	public int create(Survey pi);
	public int delete(String id);
	public int update(Survey pi);
	public List<Survey> query(Survey pi);
	public Survey detail(Integer id);
	public int count(Survey pi);
	public List<Integer> queryByState(String state);
	public List<Integer> queryByStateForExec(String state);
	public void updateState();
	public List<Survey> queryAll(Survey pi);
	public Integer submit(List<AnswerOpt> listOpt,List<AnswerTxt> listTxt);
	public List<AnswerOpt> querydetail(AnswerOpt answerOpt);
}